package org.example.completed.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.completed.domain.Active;

import java.util.List;

@Mapper
public interface ActiveMapper {

    // 获取所有活动
    @Select("SELECT id, name, image_url,description FROM activity")
    List<Active> getAllActive();
}
